<template>
	<view>
		积分列表
	</view>
</template>

<script>
	export default {
		data() {
			return {
				page:1,
				limit:10,
				listData:[]
			};
		},
		methods:{
			async getUserIntegralList(){
				let params={
					user_token:uni.getStorageSync('userToken'),
					limit:this.limit,
					page:this.page
				}
				let res=await this.$api.getUserIntegralList (params);
				if(res.data.level=='success'){
					this.listData=[...res.data.data,...this.listData]
				}
			}
		},
		onLoad() {
			this.getUserIntegralList ()
		},
		onReachBottom() {
			console.log(999)
		}
	}
</script>

<style lang="scss">

</style>
